package com.serverclient.jdk.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 接口标记注解，用来标记类为接口调用类
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface HttpServer {
	/**
	 * 实例名称
	 */
	public String beanName();
	/**
	 * 接口的请求方式
	 */
	enum Method{
		GET("get"),
		POST("post"),
		;
		public String method;
		private Method(String method){
			this.method = method;
		}
	}
	
	/**
	 * 接口请求协议
	 */
	enum Scheme{
		HTTP("http://"),
		HTTPS("https://"),
		;
		public String scheme;
		private Scheme(String scheme){
			this.scheme = scheme;
		}
	}
}
